
#include "member_BAudioOutput.h"

using namespace BWE;

member_BAudioOutput::member_BAudioOutput()
{
#ifdef _WINDOWS_SYSTEM_
	wavform.wFormatTag = WAVE_FORMAT_PCM;
	wavform.nChannels = 2;
	wavform.nSamplesPerSec = 44100;
	wavform.nAvgBytesPerSec = 44100*16*2/8;
	wavform.nBlockAlign = 4;
	wavform.wBitsPerSample = 16;
	wavform.cbSize = 0;
#endif
}
member_BAudioOutput::~member_BAudioOutput()
{

}

bool member_BAudioOutput::callback(BAudioOutput* audio)
{
	BAudioEvent audioEvent(Event_Output);
	audio->audioEvent(audioEvent);
	return true;
}
bool member_BAudioOutput::log(const BString& log)
{
	return logText.append(log);
}
